package chinasoft.dao.impl;

import chinasoft.dao.UserDao;

public class UserDaoImpl implements UserDao {
    private String username;
    private String pwd;
    private String driver;

    public UserDaoImpl(String username, String pwd, String driver) {
        this.username = username;
        this.pwd = pwd;
        this.driver = driver;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public UserDaoImpl() {
    }

    @Override
    public String toString() {
        return "UserDaoImpl{" +
                "username='" + username + '\'' +
                ", pwd='" + pwd + '\'' +
                ", driver='" + driver + '\'' +
                '}';
    }

    @Override
    public void save() {
        System.out.println("user dao running ..." + username + " "+ pwd + " "+ driver);
    }
}
